package com.my.test.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class DateSourceAop {

	@Pointcut("execution(* com.my.test.spring.service.*.*(..))")
    private void httpUtilAspectPointCut(){};

    @Before("httpUtilAspectPointCut()")
    public void before()  {
    }

    @Around("httpUtilAspectPointCut()")
    public Object around(ProceedingJoinPoint point) throws Throwable {
        Object result = null;
        result = point.proceed();
        return result;
    }

    @After("httpUtilAspectPointCut()")
    public void after()  {
    }
}
